﻿<%@ Page Title="Register User :: Re-SeSS" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="RegisterUser.aspx.cs" Inherits="ReSeSSApplication.RegisterUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">


    <div class="navbar"><div class="navbar-inner">
    <div class="container">
        
        <a class="brand" href="./Index.aspx">Re-SeSS</a>
        
        <ul class="nav">
            <li><a href="AdministratorDashboard.aspx">Dashboard</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administrator <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="RegisterUser.aspx">Register User</a></li>
                    <li><a href="ManageUsers.aspx">Manage Users</a></li>
                </ul>
            </li>
        </ul>
        
        <ul class="nav pull-right">
            <li class="dropdown">
                <a data-toggle="dropdown" class="dropdown-toggle" href="#"><%=loggedInUserDTO.FirstName%>&nbsp;<%=loggedInUserDTO.LastName%> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="Profile.aspx">Profile</a></li>
                    <li><a href="ChangePassword.aspx">Change Password</a></li>
                    <li class="divider"></li>
                    <li><a href="LogOut.aspx">Logout</a></li></li>
                </ul>
            </li>
        </ul>
        
    </div>
    </div></div><!--navbar ends-->
    
    
    <ul class="breadcrumb">
    	<li class="active">You are in:&nbsp;&nbsp;&nbsp;</li>
    	<li><a href="AdministratorDashboard.aspx">Dashboard</a> <span class="divider">/</span></li>
        <li class="active">Register User</li>
    </ul><!--breadcrumb ends-->


    <div class="well" id="UserRegistrationForm">
    
    	<div class="alert alert-success" id="AlertSuccess" runat="server"></div>
        <div class="alert alert-error" id="AlertError" runat="server"></div>
    
        <div class="form-horizontal">
        <fieldset>
        
            <legend>User Registration Form</legend>
            
            <div class="control-group">
                <asp:Label ID="lblLoginId" runat="server" Text="Login Id" AssociatedControlID="txtLoginId" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtLoginId" runat="server" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtPassword" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" 
                        CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm Password" AssociatedControlID="txtConfirmPassword" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" 
                        CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblFirstName" runat="server" Text="First Name" AssociatedControlID="txtFirstName" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblLastName" runat="server" Text="Last Name" AssociatedControlID="txtLastName" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>

            <div class="control-group">
                <asp:Label ID="lblEmailAddress" runat="server" Text="Email Address" AssociatedControlID="txtEmail" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblBirthday" runat="server" Text="Birthday" AssociatedControlID="ddlMonth" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:DropDownList ID="ddlMonth" runat="server"></asp:DropDownList>
                    <asp:DropDownList ID="ddlDay" runat="server"></asp:DropDownList>
                    <asp:DropDownList ID="ddlYear" runat="server"></asp:DropDownList>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblGender" runat="server" Text="Gender" AssociatedControlID="rdoGenderMale" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <label class="radio inline">
                        <asp:RadioButton ID="rdoGenderMale" GroupName="gender" Text="Male" 
                        runat="server" />
                    </label>
                    <label class="radio inline">
                        <asp:RadioButton ID="rdoGenderFemale" GroupName="gender" Text="Female" 
                        runat="server" />
                    </label>
                    <p class="help-inline"></p>
                </div>
            </div>

            <div class="control-group">
                <asp:Label ID="lblIsActive" runat="server" Text="Is Active?" AssociatedControlID="rdoIsActiveYes" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <label class="radio inline">
                        <asp:RadioButton ID="rdoIsActiveYes" GroupName="isActive" Text="Yes" 
                        runat="server" />
                    </label>
                    <label class="radio inline">
                        <asp:RadioButton ID="rdoIsActiveNo" GroupName="isActive" Text="No" 
                        runat="server" />
                    </label>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="form-actions">
                <asp:Button ID="RegisterUserButton" runat="server" Text="Register User" 
                    CssClass="btn btn-primary" onclick="RegisterUserButton_Click" />
                <asp:Button ID="UpdateUserButton" runat="server" Text="Update User" 
                    CssClass="btn btn-primary" onclick="UpdateUserButton_Click" />&nbsp;&nbsp;&nbsp;
                <input type="reset" value="Reset" class="btn" />

                <asp:HiddenField ID="IsEditMode" runat="server" Value="0" />
            </div>
            
        </fieldset>
        </div>
    </div><!--body ends-->


</asp:Content>
